package com.wchc.admin.user.domain.repository;

import java.util.Optional;
import java.util.concurrent.CompletableFuture;

public interface UserRepository {
    CompletableFuture<Optional<User>> findById(Long id);
    CompletableFuture<Optional<User>> findByUsername(String username);
    CompletableFuture<Long> save(User user);
    CompletableFuture<Void> delete(Long id);
}